package com.yserp.project.erp.basic.reservoir.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yserp.project.erp.basic.reservoir.domain.BasisWarehouseReservoir;

import java.util.List;

/**
 * 库区设置Service接口
 * 
 * @author yserp
 * @date 2022-07-06
 */
public interface IBasisWarehouseReservoirService extends IService<BasisWarehouseReservoir> {

    /**
     * 查询库区设置
     * 
     * @param id 库区设置主键
     * @return 库区设置
     */
    public BasisWarehouseReservoir selectBasisWarehouseReservoirById(Long id);

    /**
     * 查询库区设置列表
     * 
     * @param basisWarehouseReservoir 库区设置
     * @return 库区设置集合
     */
    public List<BasisWarehouseReservoir> selectBasisWarehouseReservoirList(BasisWarehouseReservoir basisWarehouseReservoir);

    /**
     * 新增库区设置
     * 
     * @param basisWarehouseReservoir 库区设置
     * @return 结果
     */
    public int insertBasisWarehouseReservoir(BasisWarehouseReservoir basisWarehouseReservoir);

    /**
     * 修改库区设置
     * 
     * @param basisWarehouseReservoir 库区设置
     * @return 结果
     */
    public int updateBasisWarehouseReservoir(BasisWarehouseReservoir basisWarehouseReservoir);

    /**
     * 批量删除库区设置
     * 
     * @param ids 需要删除的库区设置主键集合
     * @return 结果
     */
    public int deleteBasisWarehouseReservoirByIds(String ids);

    /**
     * 删除库区设置信息
     * 
     * @param id 库区设置主键
     * @return 结果
     */
    public int deleteBasisWarehouseReservoirById(Long id);

    /**
     * 校验库区编码是否唯一
     *
     * @param reservoirCode 库区编码
     * @return 结果
     */
    public String checkReservoirCodeUnique(String reservoirCode);
}
